package com.grass.appointment.databinding;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.appcompat.widget.Toolbar;
import androidx.databinding.DataBindingComponent;
import androidx.databinding.ViewDataBinding;
import androidx.databinding.adapters.TextViewBindingAdapter;
import androidx.recyclerview.widget.RecyclerView;
import com.androidx.p013lv.base.view.StatusControlLayout;
import com.grass.appointment.C2693BR;
import com.grass.appointment.C2694R;
import com.grass.appointment.activity.OfficialActivity;
import com.grass.appointment.generated.callback.OnClickListener;
import com.scwang.smartrefresh.layout.SmartRefreshLayout;

public class ActivityOfficialLayoutBindingImpl extends ActivityOfficialLayoutBinding implements OnClickListener.Listener {
    private static final ViewDataBinding.IncludedLayouts sIncludes = null;
    private static final SparseIntArray sViewsWithIds;
    private final View.OnClickListener mCallback10;
    private final View.OnClickListener mCallback11;
    private final View.OnClickListener mCallback12;
    private final View.OnClickListener mCallback8;
    private final View.OnClickListener mCallback9;
    private long mDirtyFlags;
    private final LinearLayout mboundView0;
    private final TextView mboundView1;
    private final ImageView mboundView2;
    private final RelativeLayout mboundView4;
    private final TextView mboundView5;
    private final TextView mboundView6;

    /* access modifiers changed from: protected */
    @Override // androidx.databinding.ViewDataBinding
    public boolean onFieldChange(int i, Object obj, int i2) {
        return false;
    }

    static {
        SparseIntArray sparseIntArray = new SparseIntArray();
        sViewsWithIds = sparseIntArray;
        sparseIntArray.put(C2694R.C2697id.toolbar, 7);
        sViewsWithIds.put(C2694R.C2697id.refresh, 8);
        sViewsWithIds.put(C2694R.C2697id.recycler, 9);
        sViewsWithIds.put(C2694R.C2697id.status_layout, 10);
    }

    public ActivityOfficialLayoutBindingImpl(DataBindingComponent dataBindingComponent, View view) {
        this(dataBindingComponent, view, mapBindings(dataBindingComponent, view, 11, sIncludes, sViewsWithIds));
    }

    private ActivityOfficialLayoutBindingImpl(DataBindingComponent dataBindingComponent, View view, Object[] objArr) {
        super(dataBindingComponent, view, 0, (ImageView) objArr[3], (RecyclerView) objArr[9], (SmartRefreshLayout) objArr[8], (StatusControlLayout) objArr[10], (Toolbar) objArr[7]);
        this.mDirtyFlags = -1;
        this.imgUserHead.setTag(null);
        LinearLayout linearLayout = (LinearLayout) objArr[0];
        this.mboundView0 = linearLayout;
        linearLayout.setTag(null);
        TextView textView = (TextView) objArr[1];
        this.mboundView1 = textView;
        textView.setTag(null);
        ImageView imageView = (ImageView) objArr[2];
        this.mboundView2 = imageView;
        imageView.setTag(null);
        RelativeLayout relativeLayout = (RelativeLayout) objArr[4];
        this.mboundView4 = relativeLayout;
        relativeLayout.setTag(null);
        TextView textView2 = (TextView) objArr[5];
        this.mboundView5 = textView2;
        textView2.setTag(null);
        TextView textView3 = (TextView) objArr[6];
        this.mboundView6 = textView3;
        textView3.setTag(null);
        setRootTag(view);
        this.mCallback12 = new OnClickListener(this, 5);
        this.mCallback10 = new OnClickListener(this, 3);
        this.mCallback11 = new OnClickListener(this, 4);
        this.mCallback9 = new OnClickListener(this, 2);
        this.mCallback8 = new OnClickListener(this, 1);
        invalidateAll();
    }

    @Override // androidx.databinding.ViewDataBinding
    public void invalidateAll() {
        synchronized (this) {
            this.mDirtyFlags = 16;
        }
        requestRebind();
    }

    @Override // androidx.databinding.ViewDataBinding
    public boolean hasPendingBindings() {
        synchronized (this) {
            if (this.mDirtyFlags != 0) {
                return true;
            }
            return false;
        }
    }

    @Override // androidx.databinding.ViewDataBinding
    public boolean setVariable(int i, Object obj) {
        if (C2693BR.cityAddress == i) {
            setCityAddress((String) obj);
        } else if (C2693BR.backTitle == i) {
            setBackTitle((String) obj);
        } else if (C2693BR.imgCover == i) {
            setImgCover((String) obj);
        } else if (C2693BR.click != i) {
            return false;
        } else {
            setClick((OfficialActivity.OnClick) obj);
        }
        return true;
    }

    @Override // com.grass.appointment.databinding.ActivityOfficialLayoutBinding
    public void setCityAddress(String str) {
        this.mCityAddress = str;
        synchronized (this) {
            this.mDirtyFlags |= 1;
        }
        notifyPropertyChanged(C2693BR.cityAddress);
        super.requestRebind();
    }

    @Override // com.grass.appointment.databinding.ActivityOfficialLayoutBinding
    public void setBackTitle(String str) {
        this.mBackTitle = str;
        synchronized (this) {
            this.mDirtyFlags |= 2;
        }
        notifyPropertyChanged(C2693BR.backTitle);
        super.requestRebind();
    }

    @Override // com.grass.appointment.databinding.ActivityOfficialLayoutBinding
    public void setImgCover(String str) {
        this.mImgCover = str;
        synchronized (this) {
            this.mDirtyFlags |= 4;
        }
        notifyPropertyChanged(C2693BR.imgCover);
        super.requestRebind();
    }

    @Override // com.grass.appointment.databinding.ActivityOfficialLayoutBinding
    public void setClick(OfficialActivity.OnClick onClick) {
        this.mClick = onClick;
        synchronized (this) {
            this.mDirtyFlags |= 8;
        }
        notifyPropertyChanged(C2693BR.click);
        super.requestRebind();
    }

    /* access modifiers changed from: protected */
    @Override // androidx.databinding.ViewDataBinding
    public void executeBindings() {
        long j;
        synchronized (this) {
            j = this.mDirtyFlags;
            this.mDirtyFlags = 0;
        }
        String str = null;
        String str2 = this.mCityAddress;
        String str3 = this.mBackTitle;
        String str4 = this.mImgCover;
        OfficialActivity.OnClick onClick = this.mClick;
        long j2 = j & 18;
        boolean z = false;
        if (j2 != 0) {
            if (str3 == null) {
                z = true;
            }
            if (j2 != 0) {
                j |= z ? 64 : 32;
            }
        }
        long j3 = 20 & j;
        long j4 = 18 & j;
        if (j4 != 0) {
            str = z ? "返回" : str3;
        }
        if (j3 != 0) {
            OfficialActivity.setUserHead(this.imgUserHead, str4);
        }
        if ((16 & j) != 0) {
            this.imgUserHead.setOnClickListener(this.mCallback10);
            this.mboundView1.setOnClickListener(this.mCallback8);
            this.mboundView2.setOnClickListener(this.mCallback9);
            this.mboundView4.setOnClickListener(this.mCallback11);
            this.mboundView6.setOnClickListener(this.mCallback12);
        }
        if (j4 != 0) {
            TextViewBindingAdapter.setText(this.mboundView1, str);
        }
        if ((j & 17) != 0) {
            TextViewBindingAdapter.setText(this.mboundView5, str2);
        }
    }

    @Override // com.grass.appointment.generated.callback.OnClickListener.Listener
    public final void _internalCallbackOnClick(int i, View view) {
        boolean z = false;
        if (i == 1) {
            OfficialActivity.OnClick onClick = this.mClick;
            if (onClick != null) {
                z = true;
            }
            if (z) {
                onClick.btnBack();
            }
        } else if (i == 2) {
            OfficialActivity.OnClick onClick2 = this.mClick;
            if (onClick2 != null) {
                z = true;
            }
            if (z) {
                onClick2.goMessage();
            }
        } else if (i == 3) {
            OfficialActivity.OnClick onClick3 = this.mClick;
            if (onClick3 != null) {
                z = true;
            }
            if (z) {
                onClick3.userInfo();
            }
        } else if (i == 4) {
            OfficialActivity.OnClick onClick4 = this.mClick;
            if (onClick4 != null) {
                z = true;
            }
            if (z) {
                onClick4.changeCity();
            }
        } else if (i == 5) {
            OfficialActivity.OnClick onClick5 = this.mClick;
            if (onClick5 != null) {
                z = true;
            }
            if (z) {
                onClick5.changeCity();
            }
        }
    }
}
